package com.dao;

import com.pojo.Room;
import com.vo.RoomVo;

import java.util.List;

/**
 * @author mornd
 * @date 2020/11/26 - 10:55
 */
public interface RoomDao {

    /**
     * 查询房间集合
     *
     * @param roomVo
     * @return
     */
    List<Room> findRoomList(RoomVo roomVo);

    /**
     * 添加房间
     *
     * @param room
     * @return
     */
    int addRoom(Room room);

    /**
     * 修改房间
     *
     * @param room
     * @return
     */
    int updateRoom(Room room);

    /**
     * 删除房间
     *
     * @param roomId
     * @return
     */
    int deleteRoom(Integer roomId);

    /**
     * 根据房间id查询房间详情
     *
     * @param roomId
     * @return
     */
    Room findRoomById(Integer roomId);

    /**
     * 根据room的id查询room、roomType、floor 前台
     *
     * @param id
     * @return
     */
    Room findRoomAndRoomTypeAndFloorById(Integer id);
}
